
layui.use(['form','layer','upload','laydate',"address",'util'],function(){
    form = layui.form;
    $ = layui.jquery;
    var layer = parent.layer === undefined ? layui.layer : top.layer,
        upload = layui.upload,
        laydate = layui.laydate,
        address = layui.address;
	var util = layui.util,
		api = util.api;

	
    var id = util.getQueryString("id");
    
    util.request(api.getUserInfoById,{id:id}).then(function(res) {
		$('.name').val(res.result.user.name);
		$('.empno').val(res.result.user.empno);
		$('.sex').val(res.result.user.sexName);
		$('.phone').val(res.result.user.phone);
		$('.email').val(res.result.user.email);
		$('.image').attr('src',api.imageHost+res.result.user.headUrl);
    })
})